package com.alisls.shequtao.common.model.result;

import com.alisls.shequtao.common.core.exception.CommonEnumException;

/**
 * 异常枚举结果集
 *
 * @author Ke Wang
 */
public class ExceptionEnumResult extends DefaultResult {

    public ExceptionEnumResult(CommonEnumException commonEnumException) {
        this.setSuccess(Boolean.FALSE);
        this.setCode(commonEnumException.getCommonExceptionEnum().getCode());
        this.setMessage(commonEnumException.getCommonExceptionEnum().getMsg());
    }

}
